<?php
/*
邮件后台关系里系统(支持多语言)
万由电子
PROROOT_PATH
OS_DIR
*/
$PROROOT_PATH = pathinfo(__FILE__);
define('PROROOT_PATH',$PROROOT_PATH['dirname']);


//---------------------------------------------------
function why_site(){//返回项目跟到文件
	$you_path = substr($_SERVER["SCRIPT_FILENAME"],strlen(PROROOT_PATH));
	return $you_path;
}
function os_is(){//判断系统类型
		$os = PHP_OS;
		$os_tz = strtoupper(substr($os,0,3));
		if($os_tz == 'WIN'){
			$os_dir = "\\";
		}
		if($os_tz == 'LIN'){
			$os_dir = "/";
		}
		if(!(isset($os_dir))){$os_dir='/';}
		
		define('OS_DIR',$os_dir);
}
os_is();
?>